<form action = "" method = "post" name = "updateCart">
<table class = "unocart">
  <tr class = "unocart_bold">
    <td width = "25%">
      {$smarty.const._UNOCART_ITEM}
    </td>
    <td width = "20%">
      {$smarty.const._UNOCART_IMAGE}
    </td>
    <td width = "15%" style = "text-align: center">
      {$smarty.const._UNOCART_SINGLEPRICE}
    </td>
    <td width = "15%" style = "text-align: center">
      {$smarty.const._UNOCART_NUMBER}
    </td>
    <td width = "15%" style = "text-align: center">
      {$smarty.const._UNOCART_PRICE_TOTAL}
    </td>
    <td width = "10%">
      {$smarty.const._UNOCART_REMOVE}
    </td>
  </tr>
  {foreach from=$products item=prod name=prodfor key=key_id}
  <tr class = "unocart_prod_cart" {if $smarty.foreach.prodfor.total==$smarty.foreach.prodfor.iteration}id = "unocart_last_product"{/if}>
    <td>
      {$prod.product_name}
        <!-- Attributes output -->
        {foreach from=$prod.attributes_value item=attr}
          <p class = "unocart_cart_attribute">{$attr->attr} : {$attr->value}</p>
        {/foreach}
        <!-- End attributes output -->
    </td>
    <td class = "unocart_img_description_center">
      <a href = "{$prod.href}">
        <img src = "{$image_product_path}/{if $prod.thumb_image}{$prod.thumb_image}{else}{$no_image}{/if}" alt = "{$prod.name}" class = "unocart_img" />
      </a>
    </td>
    <td style = "text-align: center">
      {format_price price = $prod.price}
    </td>
    <td style = "text-align: center">
      <input type = "text" name = "quantity[{$key_id}]" value = "{$prod.quantity}" class = "inputbox" style = "width: 25px" />
    </td>
    <td style = "text-align: center">
      {format_price price = $prod.price*$prod.quantity}
    </td>
    <td style = "padding-left:15px">
      <a href = "{$prod.href_delete}"><img src = "{$image_path}images/remove.gif" alt = "delete" /></a>
    </td>
  </tr>
  {/foreach}
  <tr class = "unocart_subtotal">
    <td>
	</td>
    <td>
	</td>
    <td>
	</td>
    <td class = "td_1">
		<img style = "cursor:pointer" src = "{$image_path}/images/update_cart.gif" title = "{$smarty.const._UNOCART_UPDATE_CART}" alt = "{$smarty.const._UNOCART_UPDATE_CART}" onclick = "document.updateCart.submit();" />
	</td>
    <td>
	</td>
    <td>
	</td>
  </tr>
  <tr class = "unocart_subtotal">
    <td colspan = "2">
    </td>
    <td class = "td_2" colspan = "3">
      {$smarty.const._UNOCART_PRICE_SUBTOTAL}
    </td>
    <td class = "td_3">
      {format_price price = $summ}
    </td>
  </tr>
  {if $rabatt_summ}
  <tr class = "unocart_subtotal">
    <td colspan = "4">
    </td>
    <td class = "td_2">
      {$smarty.const._UNOCART_RABATT_VALUE}
    </td>
    <td class = "td_3">
      {format_price price = -$rabatt_summ}
    </td>
  </tr>
  {/if}
  <tr class = "unocart_subtotal">
    <td colspan = "4">
    </td>
    <td class = "td_2">
      {$smarty.const._UNOCART_PRICE_TOTAL}
    </td>
    <td class = "td_3">
      {format_price price = $summ-$rabatt_summ}
    </td>
  </tr>
  <tr class = "unocart_subtotal">
    <td colspan = "3">
    </td>
    <td class = "td_2" colspan = "2">
      {$smarty.const._UNOCART_TAX}
      (
	  {foreach from=$array_tax item=tax key=percent_tax}
      	{$percent_tax}% = {format_price price=$tax}
      {/foreach}
      )

    </td>
    <td class = "td_3">
      {format_price price = $tax_summ}
    </td>
  </tr>
</table>
<table class = "unocart" style = "margin-top:10px">
  <tr id = "checkout">
    <td width = "50%" class = "td_1">
       <a href = "{$href_shop}">
         <img src = "{$image_path}/images/arrow_left.gif" alt = "{$smarty.const._UNOCART_BACK_TO_SHOP}" />
         {$smarty.const._UNOCART_BACK_TO_SHOP}
       </a>
    </td>
    <td width = "50%" class = "td_2">
       <a href = "{$href_checkout}">
         {$smarty.const._UNOCART_CHECKOUT}
         <img src = "{$image_path}/images/arrow_right.gif" alt = "{$smarty.const._UNOCART_CHECKOUT}" />
       </a>
    </td>
  </tr>
</table>
<input type = "hidden" name = "refresh" value = "1" />
<input type = "hidden" name = "skip" value = "1" />
<input type = "hidden" name = "option" value = "com_unocart" />
<input type = "hidden" name = "task" value = "cart" />
</form>
{if $use_rabatt}
<br /><br />
<form name = "rabatt" method = "post" action = "">
<table class = "unocart">
  <tr>
    <td>
      {$smarty.const._UNOCART_RABATT}
      <input type = "text" class = "inputbox" name = "rabatt" value = "" />
      <input type = "submit" class = "button" name = "submit" value = "{$smarty.const._UNOCART_RABATT_ACTIVE}" />
    </td>
  </tr>
</table>
<input type = "hidden" name = "option" value = "com_unocart" />
<input type = "hidden" name = "task" value = "rabatt" />
</form>
{/if}